package com.hopu.v1.service.admin.verify.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hopu.v1.pojo.verify.Approval;
import com.hopu.v1.service.admin.verify.ApprovalService;
import com.hopu.v1.mapper.admin.verify.ApprovalMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class ApprovalServiceImpl extends ServiceImpl<ApprovalMapper, Approval>
    implements ApprovalService{

    @Resource
    private ApprovalMapper approvalMapper;

    @Override
    public List<Approval> selectLeaveRecordId(Integer leaveRecordId) {
        return approvalMapper.selectLeaveRecordId(leaveRecordId);
    }

    @Override
    public void updateApproval(Approval approval) {
        approvalMapper.updateApproval(approval);
    }
	
	@Override
	public void insertApprove(List<Approval> approvals) {
		baseMapper.insert(approvals);
	}
}




